package com.ossjk.oa.system.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 数组字典
 * </p>
 *
 * @author chair
 * @since 2019-02-03
 */
public class Dictionary extends BaseEntity<Dictionary> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;
    /**
     * 类型 1-系统属性、2-自定义属性
     */
    @TableField("type")
    private BigDecimal type;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 键
     */
    @TableField("dkey")
    private String dkey;
    /**
     * 值
     */
    @TableField("dvalue")
    private String dvalue;
    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public BigDecimal getType() {
        return type;
    }

    public void setType(BigDecimal type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDkey() {
        return dkey;
    }

    public void setDkey(String dkey) {
        this.dkey = dkey;
    }

    public String getDvalue() {
        return dvalue;
    }

    public void setDvalue(String dvalue) {
        this.dvalue = dvalue;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Dictionary{" +
        ", id=" + id +
        ", type=" + type +
        ", name=" + name +
        ", dkey=" + dkey +
        ", dvalue=" + dvalue +
        ", remarks=" + remarks +
        "}";
    }
}
